using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Abp.Localization;
using Volo.Abp.Validation;
using Matrix.Configuration.Localization;
using Microsoft.Extensions.DependencyInjection;

namespace Matrix.Configuration
{
    [DependsOn(
        typeof(AbpValidationModule),
        typeof(AbpLocalizationModule)
    )]
    public class MatrixConfigurationDomainSharedModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpLocalizationOptions>(options =>
            {
                options.Resources
                    .Add<MatrixConfigurationResource>("en");
            });
        }
    }
}